package cn.study.feignclient.simple;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
//feignk开启GZip
@FeignClient(name = "GZipFeignClient",url = "https://api.github.com",decode404 = true)
public interface GZipFeignClient {

    @GetMapping(value = "/search/repositories")
    ResponseEntity<byte[]> searchPepo(@RequestParam("q") String queryStr);
}
